package bom.dao.organization;


import bom.dao.GenericDao;
import bom.pojo.organization.UserRole;
import bom.pojo.query.QueryUserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: Fancyears·Maylos·Malvis
 * @Description:
 * @Date: Created in  2018/11/27 15:14
 * @Modified By:
 */
@Mapper
public interface UserRoleDao extends GenericDao<UserRole, QueryUserRole> {

    /**
     * 功能描述：获取权限菜单数据
     *
     * @param entity
     * @return
     */
    UserRole getUserRoleAssociate(UserRole entity);

    /**
     * 查询当前角色权限的引用关系数量
     *
     * @param id 角色id
     * @return
     */
    Integer getUserRoleReferenceCount(Long id);

    UserRole getUserWriteRoleAssociate(UserRole userRole);

}